//
//  DataStore.h
//  BaoGongBao
//
//  Created by User on 14/11/8.
//  Copyright (c) 2014年 irule. All rights reserved.
//

#import <Foundation/Foundation.h>

#define kDataStore_mbIsInit				@"mbIsInit"
#define kDataStore_mbIsLogin			@"mbIsLogin"
#define kDataStore_mStartPageType		@"mStartPageType"
#define kDataStore_mstrUserName			@"mstrUserName"
#define kDataStore_mstrRealName			@"mstrRealName"
#define kDataStore_mstrMobile			@"mstrMobile"
#define kDataStore_mstrToken			@"mstrToken"

typedef NS_ENUM(NSUInteger, StartPageType)
{
	kStartPageType_Master			=1,
	kStartPageType_SpareParts,
	kStartPageType_Merchandiser,
};

@interface DataStore : NSObject

@property (nonatomic, assign) BOOL mbIsInit;			//初始化
@property (nonatomic, assign) BOOL mbIsLogin;			//登录

@property (nonatomic, assign) NSUInteger mStartPageType;


@property (nonatomic, strong) NSString *mstrUserName;
@property (nonatomic, strong) NSString *mstrRealName;
@property (nonatomic, strong) NSString *mstrMobile;

//@property (nonatomic, strong) NSString *mstrToken;

+ (DataStore *)sharedDataStore;

@end

extern DataStore			*gDataStore;
extern KeychainItemWrapper	*gwrapper;
extern NSDictionary			*gUserInfo;
extern NSString				*gloginplace;

extern NSString				*gToken;





